home *** CD-ROM | disk | FTP | other *** search
- Path: news2.ios.com!usenet
- From: vlad@gramercy.ios.com (Vlastimil Adamovsky)
- Newsgroups: comp.lang.c++
- Subject: Re: template classes in dll? (VC++ 4.0)
- Date: Mon, 18 Mar 1996 03:51:50 GMT
- Organization: Internet Online Services
- Message-ID: <4iim7m$ime@news2.ios.com>
- References: <1996Mar6.133456.3709@cs.mun.ca> <313E48F6.41C67EA6@sparky.hampshire.ma.us>
- NNTP-Posting-Host: ppp-54.ts-7.hck.idt.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Scott Reed <scott@sparky.hampshire.ma.us> wrote:
-
- >I'm having difficulty building a VC++ 4.0 dll with template classes.
- >The way I'm using the DllExport spec (actually __declspec(dllexport))
- >doesn't appear to fit the syntax for template classes, i.e.
- > template <class T> class DllExport ListOf {...};
- >results in a syntax error ("error C2960: template 'class' requires a
- >tag-name"). I've searched the online help for hours but I can't figure
- >this out. I'd really appreciate any help on this.
- > - scott
-
- If you really insist on using templates, then try to instantaite them
- in the your DLL and then you should not get any problems using it.
-
-
- *******************************************
- * Vlastimil Adamovsky *
- * Smalltalk, C++ and Envelop development *
- *******************************************
-
-